import pickle
from datetime import datetime
#
# file_name = "data/test_data.pkl"
#
# data = {"123":"A","555":"ABCD"}
#
# with open(file_name, 'wb') as f:
#     pickle.dump(data, f)



# 当前时间
current_time = datetime.now()

# 格式化时间字符串，精确到分钟
time_str = current_time.strftime("%Y-%m-%d")

# 将字典写入 pickle 文件
file_name = f"data/data_{time_str}.pkl"

# 读取 pickle 文件
with open(file_name, 'rb') as f:
    update_dict = pickle.load(f)

for key, value in update_dict.items():
    print(key, value)
# print(update_dict["在计算环境保护税的应税污染物排放量时，如果不属于排污许可管理的排污单位，则适用生态环境部发布的（ ）"])